<h2><span><?php echo $username; ?>Your Profile</span></h2>
<?php echo $form->create('User'); ?>
<?php echo $form->hidden('id'); ?>
<?php echo $form->input('username',array(
				'error'=> array(
						'length' => 'Username must be between 6 and 24 characters long, only alphanumerical characters and spaces are allowded', 
						'unique' => 'This username is alrealdy taken'
						)
					)
			);
					
					
?>
	

<?php echo $form->input('password',array('error'=>'Password must be between 5 and 24 characters long, only alphanumericals allowed.')); ?>


<?php echo $form->input('email',array(
				'error' => array(
						'valid' => 'E-mail address is not valid',
						'unique' => 'This e-mail adresse is already taken'
						)
					) 
			); 
?>

<?php echo $form->submit();?>

<p>
Your password will be sent to the e-mail adress you entered.<br />
You can change your password later in your profile.
</p>

<?php echo $form->end();?> 




